#include "platinum.h"
#include "mudnmuck.h"
#include "dungeon.h"

std::string getFirstWord(std::string msg)
{
     return(msg.substr(0,msg.find_first_of("\n\t ")));
}

std::string getRestWords(std::string msg)
{
     return(msg.substr(msg.find_first_of("\n\t ")));
}

std::string toupperStr(std::string str)
{
	std::transform(str.begin(), str.end(), str.begin(),(int(*)(int)) toupper);
	 return(str);
}

std::string tolowerStr(std::string str)
{
	std::transform(str.begin(), str.end(), str.begin(),(int(*)(int)) tolower);
	 return(str);
}

int main(int argc, char* argv[])
{
	using namespace Platinum;
	Dungeon* dungeon = new Dungeon;
	bool quit = false;
	while(!quit)
	{
		dungeon->ProcessTick();
	}
}